<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>Drivers.Version</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.js" TYPE="text/javascript"
></SCRIPT
><SCRIPT TYPE="text/javascript"
>window.onload = function () {setSynopsis("mini_Drivers-Version.html")};</SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
></TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>Drivers.Version</FONT
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
>this module contains the top level routines for searching for
 packages with certain dependencies
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Synopsis</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="#v%3Amatch_version"
>match_version</A
> :: ByteString -&gt; ByteString -&gt; ByteString -&gt; Bool</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Ais_equal"
>is_equal</A
> :: ByteString -&gt; ByteString -&gt; Bool</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Ais_larger"
>is_larger</A
> :: ByteString -&gt; ByteString -&gt; Bool</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Ais_larger_equal"
>is_larger_equal</A
> :: ByteString -&gt; ByteString -&gt; Bool</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Ais_smaller"
>is_smaller</A
> :: ByteString -&gt; ByteString -&gt; Bool</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Ais_smaller_equal"
>is_smaller_equal</A
> :: ByteString -&gt; ByteString -&gt; Bool</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Ais_same_rev_class"
>is_same_rev_class</A
> :: ByteString -&gt; ByteString -&gt; Bool</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Documentation</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:match_version"
><A NAME="v%3Amatch_version"
></A
></A
><B
>match_version</B
> :: ByteString -&gt; ByteString -&gt; ByteString -&gt; Bool</TD
></TR
><TR
><TD CLASS="doc"
>check if a version plus qualifier matches a supplied
 version string 
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:is_equal"
><A NAME="v%3Ais_equal"
></A
></A
><B
>is_equal</B
> :: ByteString -&gt; ByteString -&gt; Bool</TD
></TR
><TR
><TD CLASS="doc"
><P
>function checking equality of two version strings
</P
><P
>NOTE: We do two things to determine equality:
</P
><UL
><LI
> a raw comparison of the ByteString
       - next, we tokenize both ByteStrings, strip the trailing
         zeros, and then compare to catch cases like
         1.1.0.0.0 == 1.1
</LI
></UL
><P
>This means we're currently missing things like 
 1.1.0.0-rc1 and 1.1-rc1 as being equal
</P
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:is_larger"
><A NAME="v%3Ais_larger"
></A
></A
><B
>is_larger</B
> :: ByteString -&gt; ByteString -&gt; Bool</TD
></TR
><TR
><TD CLASS="doc"
>check if version string 1 is larger than version string 2
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:is_larger_equal"
><A NAME="v%3Ais_larger_equal"
></A
></A
><B
>is_larger_equal</B
> :: ByteString -&gt; ByteString -&gt; Bool</TD
></TR
><TR
><TD CLASS="doc"
>check if version string 1 is large equal than version
 string 2
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:is_smaller"
><A NAME="v%3Ais_smaller"
></A
></A
><B
>is_smaller</B
> :: ByteString -&gt; ByteString -&gt; Bool</TD
></TR
><TR
><TD CLASS="doc"
>check if version string 1 is smaller than version string2
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:is_smaller_equal"
><A NAME="v%3Ais_smaller_equal"
></A
></A
><B
>is_smaller_equal</B
> :: ByteString -&gt; ByteString -&gt; Bool</TD
></TR
><TR
><TD CLASS="doc"
>check if version string 1 is smaller equal than version
 string 2.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:is_same_rev_class"
><A NAME="v%3Ais_same_rev_class"
></A
></A
><B
>is_same_rev_class</B
> :: ByteString -&gt; ByteString -&gt; Bool</TD
></TR
><TR
><TD CLASS="doc"
>function checking if two particular versions match
 apart from the revision number
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 2.4.2</TD
></TR
></TABLE
></BODY
></HTML
>
